package com.qianzhou.eduCommentBoot.service;

import com.qianzhou.eduCommon.po.CourseComment;

import java.util.List;

/**
 * Comment Service
 */
public interface CommentService {
    /**
     * @Author qian.zhou
     * @Description //TODO
     * @Date 8:54 PM 2022/1/14
     * @Param  * @param comment
     * @return Integer
     */
    Integer saveComment(CourseComment comment);

    /**
     * @Author qian.zhou
     * @Description //TODO
     * @Date 8:55 PM 2022/1/14
     * @Param  * @param courseId offset pageSize
     * @return List<CourseComment>
     */
    List<CourseComment> getCommentsByCourseId(Integer courseId, Integer offset,
                                              Integer pageSize);
    /**
     * @Author qian.zhou
     * @Description //TODO
     * @Date 8:55 PM 2022/1/14
     * @Param  * @param commentId userId
     * @return Integer
     */
    Integer cancelFavorite(Integer commentId, Integer userId);

}
